/* 搜索请求模块 */
import request from '@/utils/request'

/* 搜索建议 */
export const suggestionAPI = query => {
  return request({
    method: 'GET',
    // url小写
    url: '/v1_0/suggestion',
    params: {
      q: query
    }

  }
  )
}
/* 搜索结果 */
export const searchResultAPI = params => {
  return request({
    method: 'GET',
    // url小写
    url: '/v1_0/search',
    params

  }
  )
}
